package GUITest;

import java.awt.event.*;

import javax.swing.*;

public class MyFrame extends JFrame {

	public MyFrame() {
		setTitle("My Empty Frame");
		setSize(300, 300);
		setLocation(10, 200);
		addWindowListener(new Terminator());
	}

	public static void main(String args[]) {
		JFrame f = new MyFrame();
		f.setVisible(true);
	}
	
	class Terminator extends WindowAdapter {
		public void windowClosing(WindowEvent e) {
			System.exit(0);
		}
	}
}
